package com.lianjia.sh.tools.msg.v2.message.impl;

import com.lianjia.sh.tools.msg.v2.message.SmsMsg;
import com.lianjia.sh.tools.msg.v2.sender.PnsSender;
import com.lianjia.sh.tools.msg.v2.sender.Sender;
import com.lianjia.sh.tools.msg.v2.sender.SmsSender;

/**
 * Created by yangsp1 on 16/6/24.
 */
public class SmsMsgImpl implements SmsMsg {
    private String phone;

    private String msg;

    @Override
    public boolean isMatch(Sender sender) {
        return sender instanceof SmsSender;
    }

    @Override
    public void invokSend(Sender sender) {
        ((SmsSender)sender).send(this);
    }
    public String getPhone(){
        return phone;
    }

    public void setPhone(String phone){
        this.phone = phone;
    }

    public String getMsg(){
        return msg;
    }

    public void setMsg(String msg){
        this.msg = msg;
    }
}
